/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Demo;

import MySqlAccess.DataAcessHelper;
import MySqlAccess.RatingInfo;
import MySqlAccess.UserRating;
import java.util.List;

/**
 *
 * @author tran tuan tai
 */
public class GetRatingInfo
{
    public static void PrintRatingInfo()
    {
        DataAcessHelper.SetDatabaseName("baonhattin");
        DataAcessHelper.SetPass("123");
        DataAcessHelper.SetServer("localhost");
        DataAcessHelper.SetUser("root");

        DataAcessHelper.CreateConnection();
        
        UserRating rating = new UserRating();
        List<RatingInfo> lstRating = rating.GetAllItem();
        for (RatingInfo info : lstRating)
        {
            System.out.println(info.m_idUser);
        }

    }

    public static void main(String[] argvs)
    {
        PrintRatingInfo();
    }

}
